package com.lonwan.demo.controller;

import com.lonwan.demo.dto.BookDto;
import com.lonwan.demo.util.ResultHelper;
import com.lonwan.demo.vo.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author susc
 * @title: SwaggerTestController
 * @projectName knife4j-demo
 * @description: 仅供测试使用，测试配置扫描多个包是否生效，此为第二个包
 * @date 2021/9/299:43
 */
@RestController
@RequestMapping("book2")
@ApiOperation("book2接口")
public class SwaggerTestController2 {

    @GetMapping("/info")
    public CommonResult<String> getBookInfo(BookDto bookDto){

        return ResultHelper.success("成功");
    }

    @DeleteMapping("/info")
    public String getBookInfo2(String id){
        return "success";
    }
}
